﻿
//Author: 张亚涛
//createtime:2015-12-17 22:43:51
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class MemberCar
    {
        public MemberCar()
        { }
        public MemberCar(IDataReader reader)
        {
            _id = long.Parse(reader["ID"].ToString());
            if (reader["OpenID"] != DBNull.Value)
            {
                _OpenID = reader["OpenID"].ToString();
            }
            if (reader["CarTypeID"] != DBNull.Value)
            {
                _carTypeID = int.Parse(reader["CarTypeID"].ToString());
            }
            if (reader["CarNumber"] != DBNull.Value)
            {
                _carNumber = reader["CarNumber"].ToString();
            }
            if (reader["Color"] != DBNull.Value)
            {
                _color = reader["Color"].ToString();
            }
        }

        #region 数据库字段
        private long? _id;
        private string _OpenID;
        private int? _carTypeID;
        private string _carNumber;
        private string _color;
        #endregion

        #region 字段属性
        /// <summary>
        /// 
        /// </summary>
        public long? Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 微信ID
        /// </summary>
        public string OpenID
        {
            set { _OpenID = value; }
            get { return _OpenID; }
        }
        /// <summary>
        /// 车型
        /// </summary>
        public int? CarTypeID
        {
            set { _carTypeID = value; }
            get { return _carTypeID; }
        }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNumber
        {
            set { _carNumber = value; }
            get { return _carNumber; }
        }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color
        {
            set { _color = value; }
            get { return _color; }
        }
        #endregion

        #region 扩展属性
        private string _carType;
        /// <summary>
        /// 车型
        /// </summary>
        public string CarType
        {
            set { _carType = value; }
            get { return _carType; }
        }
        private string _carLogo;
        /// <summary>
        /// 车型LOGO
        /// </summary>
        public string CarLogo
        {
            set { _carLogo = value; }
            get { return _carLogo; }
        }
        #endregion
    }
}